package a.e.b.b;

import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

import java.util.Collection;
import java.util.LinkedList;
import java.util.regex.Pattern;

public class bb
{
  private static final Pattern a = Pattern.compile("^\\s*$");
  public static boolean b;
  
  public static Node a(Node paramNode, String paramString1, String paramString2)
  {
    int j = a.b;
    boolean bool = a.a;
    NodeList localNodeList = paramNode.getChildNodes();
    int i = 0;
    label116:
    label119:
    do
    {
      if (i >= localNodeList.getLength()) {
        break;
      }
      Node localNode = localNodeList.item(i);
      String str = localNode.getNamespaceURI();
      if (j == 0)
      {
        if (localNode.getNodeType() == 1)
        {
          if (j != 0) {
            continue;
          }
          if (paramString1.equals(localNode.getLocalName()))
          {
            if (j == 0) {
              if (paramString2 == null)
              {
                if (str != null) {
                  break label119;
                }
                break label116;
              }
            }
            if (j != 0) {
              continue;
            }
            if (paramString2.equals(str)) {
              return localNode;
            }
          }
        }
        i++;
      }
    } while (!bool);
    return null;
  }
  
  public static Collection b(Node paramNode, String paramString1, String paramString2)
  {
    int j = a.b;
    boolean bool = a.a;
    NodeList localNodeList = paramNode.getChildNodes();
    LinkedList localLinkedList = new LinkedList();
    int i = 0;
    label125:
    do
    {
      if (i >= localNodeList.getLength()) {
        break;
      }
      Node localNode = localNodeList.item(i);
      String str = localNode.getNamespaceURI();
      if (j == 0)
      {
        if (localNode.getNodeType() == 1)
        {
          if (j != 0) {
            continue;
          }
          if (paramString1.equals(localNode.getLocalName()))
          {
            if (j == 0) {
              if (paramString2 == null)
              {
                if (str != null) {
                  break label135;
                }
                break label125;
              }
            }
            if (j != 0) {
              continue;
            }
            if (paramString2.equals(str)) {
              localLinkedList.add(localNode);
            }
          }
        }
        i++;
      }
    } while (!bool);
    label135:
    return localLinkedList;
  }
  
  public static Node a(Node paramNode)
  {
    int j = a.b;
    boolean bool = a.a;
    NodeList localNodeList = paramNode.getChildNodes();
    int i = 0;
    label118:
    label119:
    do
    {
      if (i >= localNodeList.getLength()) {
        break;
      }
      Node localNode = localNodeList.item(i);
      if (j == 0)
      {
        if (localNode.getNodeType() != 8)
        {
          if (j == 0)
          {
            if (localNode.getNodeType() == 7) {
              break label119;
            }
            if (j != 0) {}
          }
          else if (localNode.getNodeType() == 3)
          {
            if (j != 0) {
              break label118;
            }
            String str = localNode.getNodeValue();
            if (a.matcher(str).matches()) {
              break label119;
            }
          }
          return localNode;
        }
        i++;
      }
    } while (!bool);
    return null;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.e.b.b.bb

 * JD-Core Version:    0.7.0.1

 */